﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xiaowei.Settings;

namespace Xiaowei.Diagnostics
{
    using Debugger = Logger.Debug;
    //using Debugger = System.Diagnostics.Debug;

    static class Debug
    {
       
        
        public static void WriteLine(object value)
        {
        
            WriteLine(value.ToString());
        }
        public static void WriteLine(string message)
        {
            Debugger.WriteLine($"[Xiaowei-{AppState.Version}] : " + message);
        }

        public static void WriteSdkLog(string message)
        {
            string log = $"FromSDK : {message}";
            Debugger.WriteToFile(log);
        }

        public static void WriteToFile(string message)
        {
            Debugger.WriteToFile(message);
        }

        public static void Clear()
        {
            Debugger.Clear();
        }
    }
}
